package com.hyc.algorithm.Node;

/**
 * @projectName: DataStructure
 * @package: com.hyc.algorithm.Node
 * @className: TreeNode
 * @author: 冷环渊 doomwatcher
 * @description: TODO
 * @date: 2022/4/4 16:31
 * @version: 1.0
 */
public class TreeNode {
    public int val;
    public TreeNode left;
    public TreeNode right;

    public TreeNode(int val) {
        this.val = val;
    }

    @Override
    public String toString() {
        return "TreeNode{" +
                "val=" + val +
                ", left=" + left +
                ", right=" + right +
                '}';
    }
}
